﻿@using KRM.Core
@model KRM.Core.tblKRMRSDispute
@{
    tblOrderItem orderItem = ViewBag.OrderItem;
}

<fieldset>
    <legend>RDM</legend>
    <div class="row-fluid">
        <div class="span2">RDM Reason</div>
        <div class="span4">
            @Html.DropDownList("ReasonID", null, new { @class = "input-block-level", required = "required", disabled="disabled" })
        </div>
        <div class="span2">Reason Detail</div>
        <div class="span4">
            @Html.DropDownList("ReasonDetailID", null, new { @class = "input-block-level", required = "required", disabled="disabled" })
        </div>
    </div>
    <div class="row-fluid">
        <div class="span2">Liability</div>
        <div class="span4">
            @Html.DropDownList("LiabilityID", null, new { @class = "input-block-level", disabled="disabled" })
        </div>
        <div class="span2">Preferred Resolution</div>
        <div class="span4">
            @Html.DropDownList("ResolutionID", null, new { @class = "input-block-level", disabled="disabled" })
        </div>
    </div>
    <div class="row-fluid">
        <div class="span2">Crime Reference Number</div>
        <div class="span10"><input type="number" name="CrimeReferenceNumber" class="input-block-level" value="@Model.CrimeReferenceNumber" disabled="disabled" /></div>
    </div>
    <div class="row-fluid">
        <div class="span2">RDM Items</div>
        <div class="span8">
            <textarea class="input-block-level" rows="2" name="DisputeItems" readonly="readonly">@(orderItem.ProductName + Environment.NewLine + orderItem.ProductSubOptions)</textarea>
        </div>ViewRDMQuestionnaire
        <div class="span2">
            <input type="checkbox" style="float: left; margin-right: 7px;" name="IsFullDisputeItems" disabled="disabled" value="True" @(Model.IsFullDisputeItems == true ? "checked=checked" : "")
                            id="IsFullDisputeItems" />
            Full Item
        </div>
    </div>
    <div class="row-fluid">
        <div class="span2">Replacement Items</div>
        <div class="span8">
            <textarea class="input-block-level" rows="2" name="DisputeReplacementItems" readonly="readonly">@(orderItem.ProductName + Environment.NewLine + orderItem.ProductSubOptions)</textarea>
        </div>
        <div class="span2">
            <input type="checkbox" style="float: left; margin-right: 7px;" name="IsFulDisputeReplacementItems" disabled="disabled" value="True" @(Model.IsFulDisputeReplacementItems == true ? "checked=checked" : "") 
                            id="IsFulDisputeReplacementItems" />
            Full Item
        </div>
    </div>
    <div class="row-fluid" style="margin-bottom: 10px">
        <div class="span2"></div>
        <div class="span6">
            <input type="checkbox" style="float: left; margin-right: 7px;" value="True" name="Urgent" @(Model.Urgent == true ? "checked=checked" : "") />
            Mark as Urgent
        </div>
        <div class="span4">
            <button type="button" onclick="ViewRDMQuestionnaire(@Model.QuestionnaireID)" class="btn btn-primary">View Questionnaire</button> 
        </div>
    </div>
    <div class="row-fluid">
        <div class="span2">Full Description</div>
        <div class="span10">
            <textarea class="input-block-level" rows="3" name="Description" readonly="readonly">@Model.Description</textarea>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span2">Signature</div>
        <div class="span10">
            @Html.DropDownList("SignatureID", null, new { @class = "input-block-level", disabled="disabled" })
        </div>
    </div>
    <div class="row-fluid">
        <div class="span2">Packaging</div>
        <div class="span10">
            @Html.DropDownList("PackagingID", null, new { @class = "input-block-level", disabled="disabled" })
        </div>
    </div>
    <div class="row-fluid">
        <div class="span2">Consignment No.</div>
        <div class="span10">
            <input type="text" class="input-block-level" name="ConsignmentNumber" value="@Model.ConsignmentNumber" readonly="readonly" />
        </div>
    </div>
</fieldset>
